#include "ModuleLoader/ModuleLoader.h"
#include "Directory/Directory.h"
#include "Log/SystemLog.h"
#include "DecoderTest.h"

int TestDecoder()
{
	std::string strExePath = Directory::GetExcutableDirectory() + "../../build/Win32/Debug/TyzDecoder.dll";

	ModuleLoader<IVideoDecoder> myLoader(strExePath);

	IVideoDecoder* pDecoder = myLoader.GetModuleInterface();

	if (pDecoder == NULL)
	{
		return -1;
	}

	if (!pDecoder->Init(H265_VIDEO))
	{
		return false;
	}

	// How to test ?

	return 0;
}
